﻿using System;
using System.ComponentModel;
using System.Xml.Serialization;

namespace Landpy.CruiseControlNet.FacadeInterface.ConfigurationModule
{
    public abstract class Publisher : IPrimaryKey
    {
        [Browsable(false)]
        [XmlIgnore]
        public Guid Id { get; private set; }

        [Category("Advanced")]
        [Description("The type of publisher.")]
        [XmlIgnore]
        public PublisherType Type { get; private set; }

        protected Publisher(PublisherType publisherType)
        {
            this.Type = publisherType;
            this.Id = Guid.NewGuid();
        }
    }
}